package com.fishingwithme.infrastructure.dtos.circle;

import com.fasterxml.jackson.annotation.JsonIgnore;

import com.fishingwithme.infrastructure.utils.CommonUtils;
import lombok.Data;

import java.util.List;

@Data
public class CirclePageDto {
    private Long id;
    private String title;
    @JsonIgnore
    private String picsString;
    private Boolean isActive;
    private List<String> pics;
    private String city;

    public void formatPics() {
         if (picsString != null) {
            pics = CommonUtils.convert(picsString, String.class);
        } else {
            this.pics = List.of();
        }
    }
}